Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register FIS Handlers #4389

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Register FIS Handlers #4389

merged 1 commit into from
Oct 9, 2024

Conversation

harishxr
Copy link
Contributor

@harishxr harishxr commented Oct 8, 2024

Summary

This pull request adds the registration of fault handlers to the task API server setup in the taskServerSetup() function and also adds attributePrefix + capabilityFaultInjection to externalUnsupportedCapabilities.

Implementation details

  • Previously, the registerFaultHandlers() function was being called with a nil mux router, which meant that the fault handlers were not being added to the server's request multiplexer.
  • This pull request updates the taskServerSetup() function to pass the muxRouter instance to the registerFaultHandlers() function, ensuring that the fault handlers are properly registered and accessible through the task API server.

Testing

New tests cover the changes: no

Manual testing:

  • Tasks were run for blackholeport,latency and packetloss faults in both host and awsvpc mode and have been verified to be working as intended on an EC2 instance running a custom build of ECS Agent.

Description for the changelog

Register FIS Handlers

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

Does this PR include the addition of new environment variables in the README?

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@harishxr harishxr requested a review from a team as a code owner October 8, 2024 21:16
@@ -98,7 +98,7 @@ func taskServerSetup(

// TODO: Future PR to pass in TMDS server router once all of the handlers have been implemented.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems we can remove the TODO

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

amogh09
amogh09 previously approved these changes Oct 8, 2024
@harishxr harishxr merged commit c7c9f35 into aws:feature/fis Oct 9, 2024
40 checks passed
harishxr added a commit to harishxr/amazon-ecs-agent that referenced this pull request Oct 11, 2024
amogh09 pushed a commit to amogh09/amazon-ecs-agent that referenced this pull request Oct 21, 2024
amogh09 pushed a commit that referenced this pull request Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants